﻿using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System;
using System.Xml;
using Organizer.Model;
using System.Collections.Generic;
using GalaSoft.MvvmLight.Command;
using System.Windows.Input;

namespace Organizer.ViewModel
{
    using System.Net;
    using System.Threading;
    using System.Xml.Linq;
    using System.Xml.Serialization;

    using Microsoft.Phone.Shell;

    public class StartPageViewModel : BaseViewModel
    {
        #region constructors

        public StartPageViewModel()
        {
            this.ToTodo = new RelayCommand(() => this.NavigateToTodo());
            this.ToHub = new RelayCommand(() => this.NavigateToHub());
        }

        #endregion

        #region commands

        public ICommand ToHub { get; set; }
        public ICommand ToTodo { get; set; }

        #endregion

        /// <summary>
        /// Navigation to ToDo page
        /// </summary>
        private void NavigateToTodo()
        {
            ApplicationController.Default.NavigateTo(ViewType.ToDo);
        }
        
        private void NavigateToHub()
        {
            ApplicationController.Default.NavigateTo(ViewType.Hub);
        }
    }
}
